package com.vzoom.mybatis.service.impl;

import com.vzoom.mybatis.entity.Person;
import com.vzoom.mybatis.mapper.PersonMapper;
import com.vzoom.mybatis.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public Person getById(Long id) {
        return personMapper.getById(id);
    }

    @Override
    public void createEntity(Map<String, Object> params) {
        personMapper.createEntity(params);
    }


}
